x86/hvm: add SMEP support to HVM guest
authorTim Deegan <Tim.Deegan@citrix.com>
Mon, 6 Jun 2011 12:46:48 +0000 (13:46 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Mon, 6 Jun 2011 12:46:48 +0000 (13:46 +0100)
commit89c9f78710434be622c7616f58b46e4e55145b46
tree9fba0b8fe43dd22c9f4241bed7c84a6b1526dfbf
parent95fad62ad62d48a2dec069c06aa026b5c8e71a5b
x86/hvm: add SMEP support to HVM guest

Intel new CPU supports SMEP (Supervisor Mode Execution Protection). SMEP
prevents software operating with CPL < 3 (supervisor mode) from fetching
instructions from any linear address with a valid translation for which the U/S
flag (bit 2) is 1 in every paging-structure entry controlling the translation
for the linear address.

This patch adds SMEP support to HVM guest.

Signed-off-by: Yang Wei <wei.y.yang@intel.com>
Signed-off-by: Shan Haitao <haitao.shan@intel.com>
Signed-off-by: Li Xin <xin.li@intel.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
tools/libxc/xc_cpufeature.h
tools/libxc/xc_cpuid_x86.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/guest_walk.c
xen/include/asm-x86/hvm/hvm.h